package com.wdb.domain.user.entity;

import com.wdb.common.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Table;
import java.util.Date;

@Getter
@Setter
@ToString(callSuper = true)
@Table(name = "user_info_pin")
public class UserInfoPin extends BaseEntity {
    private String mobile;

    private String password;

    private static final long serialVersionUID = 1L;

    public UserInfoPin mobile(String mobile) {
        this.setMobile(mobile);
        return this;
    }

    public UserInfoPin password(String password) {
        this.setPassword(password);
        return this;
    }

    public static UserInfoPin build() {
        return new UserInfoPin();
    }

    public UserInfoPin id(Long id) {
        this.setId(id);
        return this;
    }

    public UserInfoPin created(Date created) {
        this.setCreated(created);
        return this;
    }

    public UserInfoPin modified(Date modified) {
        this.setModified(modified);
        return this;
    }

    public UserInfoPin deleted(String deleted) {
        this.setDeleted(deleted);
        return this;
    }

    public UserInfoPin createUserId(Long createUserId) {
        this.setCreateUserId(createUserId);
        return this;
    }

    public UserInfoPin updateUserId(Long updateUserId) {
        this.setUpdateUserId(updateUserId);
        return this;
    }
}